from device import Device
#引入队列
from queue import Queue
#引入线程
from threading import Thread
#引入mqtt
from mqtt_c import MqttClient

device_list = ["空调设备/党员活动室空调控制",#1
          "空调设备/党群活动室空调控制",#2
          "空调设备/助理办公室空调控制",#3
          "空调设备/财务室空调控制",#4
          "空调设备/结算中心空调控制",#5
          "空调设备/会议室空调控制（前区）",#6
          "空调设备/会议室空调控制（后区）",#7
          "空调设备/培训室空调控制",#8
          "空调设备/中畅物流空调控制",#9
          "空调设备/金融部空调控制"#10
]

class Air_Handset:
    def __init__(self) -> None:
        self.queue = Queue(200)
        #从列表中取/后的名字
        for i in range(len(device_list)):
            self.device_list[i] = device_list[i].split("/")[1]
        self.device_p = {}
        self.mqtt_client = 
        pass

    def lod_device(self, device):
        for i in range(len(device_list)):
        pass
        
    #线程函数定时发送mqtt消息
    def loop_send(self):
        while True:
            
            pass
if __name__ == '__main__':
    
    pass